﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" trimDirectiveWhitespaces="true"%>
<%@ page import="com.util.SuperPage" %>
<%@ page import="my.myorm.tool.jdbc.SQLExecutor" %>
<%@ page import="my.myorm.tool.jdbc.ResultList" %>
<%@ page import="my.myorm.tool.jdbc.Pages" %>
<%@ page import="my.myorm.tool.jdbc.SQLManager" %>
<%@ page import="com.util.SuperString" %>
<%@ page import="com.mtbu.comm.Util" %>
<%@ page import="com.util.SuperDate" %>
<%@ page import="java.util.Calendar" %>
<%@page import="com.mtbu.bean.*"%>
<%@page import="com.mtbu.dao.*"%>
<%@page import="com.mtbu.service.DataUtil"%>
<%@page import="com.util.SuperFile"%>
<%@page import="com.util.SuperMath"%>
<%@page import="java.util.Date"%>
<%@page import="com.util.DESUtil"%>
<%@page import="com.mtbu.comm.Constant"%>
<%@page import="com.mtbu.comm.PageCache"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.HashMap"%>

<%@include file="channel_list_comm.jsp"%>

<%
	String curName = "项目管理";

	String pid=SuperString.notNullTrim(request.getParameter("pid"));
	Project project = DAOManager.projectDao.findProject(pid);
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><%=curName%></title>
<link href="css/adminPPLive.css" rel="stylesheet" type="text/css" />
<link href="css/popcore.css" type="text/css" rel="stylesheet"/>

</head>
<body>

<p>流程路线：</p>
<!-- view start -->
	      <table width="100%" border="0" cellpadding="5" cellspacing="0">
			<tr>
			  <td class="bordorder">
			  <table width="100%"  border="0" cellpadding="0" cellspacing="0" >
	<%
		//Project project = DAOManager.projectDao.findProject(pid);
		Step step = project.getStepBegin();

		int i=0;
		do{
		    if(step == null ) break;

			String linkclass = "";
			if(linkclass.length()==0) linkclass="link_menuitem";

			String spanImgText = "<img src=\"images/comm/spacer.gif\" width=\"" + 20 +
					"\" height=\"10\" align=\"absmiddle\">";
			String treeImgText = true ? "" : "<img src=\"images/comm/tree11.gif\" width=\"21\" height=\"17\" align=\"absmiddle\">&nbsp;";
			String linkclassText = linkclass.length() > 0 ? " class=" + linkclass + " " : "";
			String linkText = "<span style=\"cursor:default;\">"
				+  "<b><font color=#0066cc>"+step.getName()+"</font></b>"  ;

			if(step.getBeanName().isEmpty() == false ){
				linkText += "<span style=\"cursor:default;\">";
				linkText +=  "<font color=#00cc66>  ("+ step.getBeanName()+")</font>";
			}

			String ownerNames = step.getOwnerNames();
	%>
				  <tr id="cell_<%=i%>" class="tr_msg_cell" onMouseOver="cell_over(this);" onMouseOut="cell_out(this)" >
					<td width="91%" align="left">
					  <%=spanImgText%><%=treeImgText%>
					  <%=linkText%>
					</td>
				  </tr>

				  <tr id="func_tr_<%=pid%>">
					<td width="91%" align="left">
						<table width="100%"  border="0" cellpadding="0" cellspacing="0">
						  <tr class="tr_msg_cell" onMouseMove="cell_over(this);" onMouseOut="cell_out(this)">
							<td width="100%" align="left" valign="bottom">
							<span style="padding-left: 23px;">
								<img src="images/comm/tree13.gif" width="25" height="17" align="absmiddle" />


								<% if(step.getOwners().size() !=0 ) { %>
								<img src="images/comm/tree12.gif" width="25" height="17" align="absmiddle" />
								<span style="padding-right: 10px;vertical-align: top;">
									<font color="#999999"><%=step.getOwnerNames()%></font>
								</span>
								<% } %>
							</span>
							</td>
						  </tr>
						</table>
					</td>
				  </tr>

	<%
			step = step.getNextStep();
			i++;
			if(i >= 100){
				break;
			}
		}while( step != null );
	%>
			</table>
			</td>
		</tr>
		</table>
	<!-- view end -->
	<!-- view begin-->

<p>回退路线：</p>
<%

	step = project.getStepEnd();
	do{
		if ( step == null )
		{
			break;
		}
		if ( step.getNextStep() != null ){
			out.print(" -> " + step.getName() );
		}
		else{
			out.print(step.getName() );
		}
		step = step.getPreStep();
	}while( step != null );
%>

	<!-- view end-->



</body>